import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'; // 全量引入element
import 'element-plus/dist/index.css'; // element css
import 'normalize.css/normalize.css' // reset CSS的现代方案
import {VUE_APP_BASE_API,service} from '@/utils/request' // 封装的请求
import './router/routerPermission' // 路由拦截

const app = createApp(App)
// axios挂载到原型上
app.config.globalProperties.$axios = service
app.config.globalProperties.$BASE_API = VUE_APP_BASE_API
app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
